package com.ihr360.payroll.dao;

import com.ihr360.payroll.model.dto.attendance.report.AttendanceMonthlyReportSummary;
import com.ihr360.rest.reposity.SimpleRestReposity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;


@RepositoryRestResource
public interface AttendanceMonthlyReportSummaryRepository extends SimpleRestReposity<AttendanceMonthlyReportSummary, Long> {

    Page<AttendanceMonthlyReportSummary> findByCompanyIdAndIdInOrderByCreatedAtDesc(String companyId, List<Long> summaryIdList, Pageable pageable);

    List<AttendanceMonthlyReportSummary> findByCompanyIdOrderByStartDateAsc(String companyId);

    AttendanceMonthlyReportSummary findByCompanyIdAndYearAndMonthAndSalaryPlanId(String companyId, int year, int month, Long salaryPlanId);

}